package name.sakanacatcher.repository;


import name.sakanacatcher.entity.Com;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

@Repository
public interface ComRepository extends JpaRepository<Com, Integer> {

    Com getById(int oid);

    void deleteById(int id);

    Com findByName(String name);

    boolean existsComByName(String name);

}
